package com.ziyueyuwen.xiniao.bean.ao;

import com.ziyueyuwen.xiniao.enums.LessonModuleEnum;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author wancheng  on 2019/1/11.
 */
public class QuestionForCourseLessonAO {
    /**
     * 课程id
     */
    @NotNull(message = "课程id不能为null")
    private Integer courseId;
    /**
     * 课节索引
     */
    @NotNull(message = "课节不能为null")
    @Min(value = 1,message = "课节最小数为1")
    private Integer lessonIndex;
    /**
     * 类型
     */
    @NotNull(message = "课节类型不能为空")
    private  LessonModuleEnum lessonQuestionType;
    /**
     * 题的id集合
     */
    private List<Integer> questionDataId;

    /**
     * 作答要求
     */
    private String answerOrder;
    /**
     * 题的分组
     */
    private Integer questionGroup;

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getLessonIndex() {
        return lessonIndex;
    }

    public void setLessonIndex(Integer lessonIndex) {
        this.lessonIndex = lessonIndex;
    }

    public List<Integer> getQuestionDataId() {
        return questionDataId;
    }

    public void setQuestionDataId(List<Integer> questionDataId) {
        this.questionDataId = questionDataId;
    }

    public LessonModuleEnum getLessonQuestionType() {
        return lessonQuestionType;
    }

    public void setLessonQuestionType(LessonModuleEnum lessonQuestionType) {
        this.lessonQuestionType = lessonQuestionType;
    }

    public String getAnswerOrder() {
        return answerOrder;
    }

    public void setAnswerOrder(String answerOrder) {
        this.answerOrder = answerOrder;
    }

    public Integer getQuestionGroup() {
        return questionGroup;
    }

    public void setQuestionGroup(Integer questionGroup) {
        this.questionGroup = questionGroup;
    }
}
